package com.gildedrose;

import com.gildedrose.item.ItemAdapter;

public class GildedRose {
    ItemAdapter[] items;

    public GildedRose(ItemAdapter[] items) {
        this.items = items;
    }

    public void updateQuality() {
        for (ItemAdapter itemAdapter : items) {
            itemAdapter.updateQuality();
            itemAdapter.updateSellIn();
            itemAdapter.updateQualityStale();
        }
    }
}
